/*
 *  txdnet.cn tonydon
 * 
 */
package cn.txdnet.txcms.query;

import java.sql.Date;
import txdnet.util.StaticMark;

/**
 *
 * @author txdnet
 */
public class HotWordQuery extends BaseQuery {

    private static final long serialVersionUID = -2096804565843752747L;
    private Long id;
    private String word;
    private Integer cid;
    private Integer beginHitNum;
    private Integer endHitNum;
    private Integer beginOrd;
    private Integer endOrd;
    private Date pubBeginTime;
    private Date pubEndTime;
    private Long pubBeginTimeMs;
    private Long pubEndTimeMs;
    private Date stopBeginTime;
    private Date stopEndTime;
    private Long stopBeginTimeMs;
    private Long stopEndTimeMs;

    @Override
    public void filter() {
        if (pubBeginTime != null && pubEndTime != null) {
            pubBeginTimeMs = pubBeginTime.getTime();
            pubEndTimeMs = pubEndTime.getTime();
        }
        if (stopBeginTime != null && stopEndTime != null) {
            stopBeginTimeMs = stopBeginTime.getTime();
            stopEndTimeMs = stopEndTime.getTime();
        }
        if (word != null) {
            word = StaticMark.STR_PERCENT.concat(word).concat(StaticMark.STR_PERCENT);
        }
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the word
     */
    public String getWord() {
        return word;
    }

    /**
     * @param word the word to set
     */
    public void setWord(String word) {
        this.word = word;
    }

    /**
     * @return the cid
     */
    public Integer getCid() {
        return cid;
    }

    /**
     * @param cid the cid to set
     */
    public void setCid(Integer cid) {
        this.cid = cid;
    }

    /**
     * @return the beginHitNum
     */
    public Integer getBeginHitNum() {
        return beginHitNum;
    }

    /**
     * @param beginHitNum the beginHitNum to set
     */
    public void setBeginHitNum(Integer beginHitNum) {
        this.beginHitNum = beginHitNum;
    }

    /**
     * @return the endHitNum
     */
    public Integer getEndHitNum() {
        return endHitNum;
    }

    /**
     * @param endHitNum the endHitNum to set
     */
    public void setEndHitNum(Integer endHitNum) {
        this.endHitNum = endHitNum;
    }

    /**
     * @return the beginOrd
     */
    public Integer getBeginOrd() {
        return beginOrd;
    }

    /**
     * @param beginOrd the beginOrd to set
     */
    public void setBeginOrd(Integer beginOrd) {
        this.beginOrd = beginOrd;
    }

    /**
     * @return the endOrd
     */
    public Integer getEndOrd() {
        return endOrd;
    }

    /**
     * @param endOrd the endOrd to set
     */
    public void setEndOrd(Integer endOrd) {
        this.endOrd = endOrd;
    }

    /**
     * @return the pubBeginTime
     */
    public Date getPubBeginTime() {
        return pubBeginTime;
    }

    /**
     * @param pubBeginTime the pubBeginTime to set
     */
    public void setPubBeginTime(Date pubBeginTime) {
        this.pubBeginTime = pubBeginTime;
    }

    /**
     * @return the pubEndTime
     */
    public Date getPubEndTime() {
        return pubEndTime;
    }

    /**
     * @param pubEndTime the pubEndTime to set
     */
    public void setPubEndTime(Date pubEndTime) {
        this.pubEndTime = pubEndTime;
    }

    /**
     * @return the pubBeginTimeMs
     */
    public Long getPubBeginTimeMs() {
        return pubBeginTimeMs;
    }

    /**
     * @param pubBeginTimeMs the pubBeginTimeMs to set
     */
    public void setPubBeginTimeMs(Long pubBeginTimeMs) {
        this.pubBeginTimeMs = pubBeginTimeMs;
    }

    /**
     * @return the pubEndTimeMs
     */
    public Long getPubEndTimeMs() {
        return pubEndTimeMs;
    }

    /**
     * @param pubEndTimeMs the pubEndTimeMs to set
     */
    public void setPubEndTimeMs(Long pubEndTimeMs) {
        this.pubEndTimeMs = pubEndTimeMs;
    }

    /**
     * @return the stopBeginTime
     */
    public Date getStopBeginTime() {
        return stopBeginTime;
    }

    /**
     * @param stopBeginTime the stopBeginTime to set
     */
    public void setStopBeginTime(Date stopBeginTime) {
        this.stopBeginTime = stopBeginTime;
    }

    /**
     * @return the stopEndTime
     */
    public Date getStopEndTime() {
        return stopEndTime;
    }

    /**
     * @param stopEndTime the stopEndTime to set
     */
    public void setStopEndTime(Date stopEndTime) {
        this.stopEndTime = stopEndTime;
    }

    /**
     * @return the stopBeginTimeMs
     */
    public Long getStopBeginTimeMs() {
        return stopBeginTimeMs;
    }

    /**
     * @param stopBeginTimeMs the stopBeginTimeMs to set
     */
    public void setStopBeginTimeMs(Long stopBeginTimeMs) {
        this.stopBeginTimeMs = stopBeginTimeMs;
    }

    /**
     * @return the stopEndTimeMs
     */
    public Long getStopEndTimeMs() {
        return stopEndTimeMs;
    }

    /**
     * @param stopEndTimeMs the stopEndTimeMs to set
     */
    public void setStopEndTimeMs(Long stopEndTimeMs) {
        this.stopEndTimeMs = stopEndTimeMs;
    }
}
